package cn.kgc.music.service.impl;

import cn.kgc.music.dao.FormCommentMapper;
import cn.kgc.music.pojo.FormComment;
import cn.kgc.music.service.FormCommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("formcomment")
public class FormCommentServiceImpl implements FormCommentService {
    @Resource
    FormCommentMapper formCommentMapper;

    @Override
    public List<FormComment> queryFormComment(int formid) {
        return formCommentMapper.selectFormComment(formid);
    }

    @Override
    public int addFormComment(int formid,int userId,String commemt) {
        return formCommentMapper.insertFormComment(formid,userId,commemt);
    }
}
